home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / aasmacros / aaspptwo.doc < prev    next >
Text File  |  1993-01-21  |  47KB  |  1,166 lines

  1. % AASPPTWO.STY -- AAS two-column preprint substyle definition for LaTeX.
  2.  
  3. % My convention for identifying configuration information is for styles
  4. % to define the five parameters below.
  5.  
  6. \def\revtex@ver{3.0}        % Version number of this file.
  7. \def\revtex@date{10 Jan 93}    % Revision date.
  8. \def\revtex@org{AAS}        % Sponsoring organization.
  9. \def\revtex@jnl{AAS}        % Applicable journal, if specific.
  10. \def\revtex@genre{2-column preprint}    % Document "type".
  11.  
  12. % Display identifying message on screen and in logfile.
  13.  
  14. \typeout{\revtex@org\space \revtex@genre\space substyle,
  15.     v\revtex@ver\space <\revtex@date>.}
  16.  
  17. % The following mini-colophon identifies the article are having been
  18. % prepared with this macro package.  The \revtex@pageid command only
  19. % defines the formatting of this colophon; its existence and placement
  20. % within the printed article is controlled by the use of this command
  21. % in the style file.
  22.  
  23. \def\revtex@pageid{\xdef\@thefnmark{\null}
  24.     \@footnotetext{This \revtex@genre\space was prepared with the
  25.            \revtex@org\space \LaTeX\ macros v\revtex@ver.}}
  26.  
  27. % Issue a warning if manuscripts are formatted with type smaller than 12pt.
  28.  
  29. \def\genre@MS{manuscript}
  30. \def\genre@PP{preprint}
  31. \ifx\revtex@genre\genre@MS
  32.   \ifnum\@ptsize<2
  33.     \typeout{Warning: Undersize \revtex@genre\space font (1\@ptsize\space pts).
  34.     Use 12pt documentstyle option.}
  35.   \fi
  36. \fi
  37.  
  38. %  ****************************************
  39. %  *            PAGE LAYOUT               *
  40. %  ****************************************
  41.  
  42. % Create "plaintop" page style that has folios at top of page.
  43.  
  44. \def\ps@plaintop{\let\@mkboth\@gobbletwo
  45.     \def\@oddfoot{}\def\@oddhead{\rm\hfil--\space\thepage\space--\hfil}
  46.     \def\@evenfoot{}\let\@evenhead\@oddhead}
  47.  
  48. \ps@plain                            % Use "plain" pagestyle by default.
  49.  
  50. % Page size, spacing parameters, etc.
  51.  
  52. \textwidth=6.9in
  53. \textheight=8.4in
  54. \topmargin=0in
  55. \headheight=.15in
  56. \headsep=.35in
  57. \oddsidemargin=0in
  58. \evensidemargin=0in
  59. \parindent=1.2em
  60. \parskip=0.5ex
  61. \columnsep=0.5in
  62.  
  63. \hoffset=-0.2in        % To compensate for wide \textwidth
  64. \tolerance=600        % 3x "normal" value; cuts down on overfull complaints
  65.  
  66. %\@input{styopts.sty}
  67.  
  68. %  ****************************************
  69. %  *           STYLE OPTIONS              *
  70. %  ****************************************
  71.  
  72. % It is not the objective of the AASTeX project to develop LaTeX styles
  73. % that produce pages that mimic the appearance of specific AAS journals.
  74. % However, it would be nice to offer format options within the preprint
  75. % styles so that output format can be changed.  (Within the "manuscript"
  76. % style, \tighten is available, and this effectively turns off the double-
  77. % spacing.)  The primary motivation behind this idea is to provide some
  78. % definitions that permit institutions to distribute "pretty" preprints
  79. % with this package.  (Of course, I make the glaring assumption that I
  80. % can determine what someone else will think is pretty.)
  81. %
  82. % This style has the principle function of setting up two-column output.
  83. % Although it should be painfully obvious, it is important to remember
  84. % that text lines are considerably shorter when two of them are typeset
  85. % side by side on a page.  Long equations, wide tables and figures, and
  86. % the like, may not slide into this format without some adjustments.
  87. % It is our opinion that great effort to adapt copy and markup for
  88. % two-column pages is counterproductive; remember that the main goals
  89. % of this package are to enable comprehensive tagging of the article
  90. % and, secondarily, to produce "correct" draft (or referee) format pages.
  91. %
  92. % I elect not to impose a format for the front matter, although I feel
  93. % it looks best if the title, author, abstract, and keyword material is
  94. % typeset on its own page at full text width.  The author may supply the
  95. % \twocolumn command wherever desired, and, for that matter, is free to
  96. % switch between \onecolumn and \twocolumn modes.  (This is bad form.)
  97. %
  98. %     \twocolumn    Enter two-column format
  99. %
  100. % Note that the two-column format begins at the point \twocolumn appears
  101. % in the text, and if that point is before the front-matter, that stuff
  102. % gets typeset in two-column mode along with the rest of it.  For purposes
  103. % of producing "pretty" output, it is probably desirable to put this command
  104. % after the abstract and keywords, just before the body of the paper.
  105. % If the command is not specified explicitly, the first \section command
  106. % will initiate the two-column format.
  107.  
  108. % Make footnotes same size as main text.
  109.  
  110. %\let\footnotesize=\normalsize
  111.  
  112. % Define parameters to adjust the baselineskip.
  113. % These are passed as the scale factor argument to \baselinestretch.
  114.  
  115. \def\@tightleading{1.1}
  116. \def\@doubleleading{1.6}
  117.  
  118. % Double-space by default.  Observe that you double-space in LaTeX by
  119. % resetting \baselinestretch, which is essentially a scale factor for
  120. % \baselineskip (= leading, for you typographophiles).  The style uses
  121. % the \@doubleleading factor, defined above.
  122.  
  123. %\def\baselinestretch{\@doubleleading}
  124.  
  125. % The \tighten command merely resets the \baselinestretch to a
  126. % smaller factor, resulting in single-column text that is more closely
  127. % spaced.  (This will always work.)  Tightening the vertical spacing
  128. % in the text results in output that is more attractive for distribution
  129. % to colleagues who are primarily interested in reading the paper, as
  130. % opposed to copy editing it.  Double-spaced output for referees and
  131. % copy editors is, however, the main objective of this style, hence
  132. % double-spacing occurs by default.  The same effect as \tighten
  133. % can be achieved by using the "tighten" document style option.
  134. %
  135. %    \tighten
  136. %
  137. % \tighten is intended for use in the preamble of the article.
  138.  
  139. \let\tighten=\relax
  140. \let\tightenlines=\tighten
  141.  
  142. % For authors who feel compelled to change between single and double
  143. % spacing in the manuscript, \singlespace and \doublespace commands
  144. % are provided.  (Following recommendations of AAS Publications Board
  145. % Subcommittee on Preprints.)
  146. %
  147. %    \singlespace
  148. %    \doublespace
  149.  
  150. \let\singlespace=\relax
  151. \let\doublespace=\relax
  152.  
  153. % Upper case for sections (optional upper case items).  These are created
  154. % so that some headings can be toggled between mixed case and upper case
  155. % readily.  Headings that might be changed can be wrapped in the style
  156. % file in \sec@upcase{TEXT} constructs; the expansion of \sec@upcase is
  157. % controlled here.  It is `\relax' by default (mixed case heads), and can
  158. % easily be changed to `\uppercase' if desired.  If mixed case headings
  159. % are wanted by the editor, authors MUST supply mixed case text, although
  160. % this is what authors should be doing anyway.  (Mixed can be converted
  161. % to upper, but the reverse transformation cannot be automated.)
  162.  
  163. %\def\sec@upcase#1{\uppercase{#1}}
  164. \def\sec@upcase#1{\relax{#1}}
  165.  
  166. % Sometimes people want to number equations by section, rather than
  167. % sequentially through the whole paper.
  168.  
  169. \def\eqsecnum{
  170.     \@newctr{equation}[section]
  171.     \def\theequation{\hbox{\normalsize\arabic{section}-\arabic{equation}}}}
  172.  
  173. %\@input{slug.sty}
  174.  
  175. %  ****************************************
  176. %  *              SLUG LINE               *
  177. %  ****************************************
  178.  
  179. % There are some obvious style-dependent parameters and formatting
  180. % instructions in this file.  The object has been to keep the author
  181. % commands (the user interface, if you will) society, journal, and
  182. % style-independent, while the style-specific parameters and commands
  183. % are kept below that level.  Commands and parameters that are susceptible
  184. % to external interpretation, either by authors or publishers/translators,
  185. % are identified by indented comment lines, with the semantics of command
  186. % arguments described in upper case text.
  187. %
  188. %    \@journalname{JOURNAL NAME}
  189. %    \cpr@holder{COPYRIGHT HOLDER}
  190.  
  191. \def\@journalname{The Astropolitical Journal}
  192. \def\cpr@holder{American Astronomical Society}
  193.  
  194. % Journal and article identification information is established by the
  195. % editorial staff.  The following macros are used by personnel at the
  196. % editorial office to annotate/record slug-line data and should be included
  197. % in the manuscript preamble, i.e., before the LaTeX \begin{document}.  All
  198. % they do is globally define other TeX control sequences that are used by
  199. % other macros at a later time.
  200. %
  201. %    \received{RECEIPT DATE}
  202. %    \revised{REVISION DATE}
  203. %    \accepted{ACCEPTANCE DATE}
  204. %    \journalid{VOL}{JOURNAL DATE}
  205. %    \articleid{START PAGE}{END PAGE}
  206. %    \paperid{ID}
  207. %    \ccc{CODE}
  208. %
  209. % For preprints and submitted manuscripts in draft/referee format, etc.,
  210. % the slug-line information is irrelevant and in those kinds of style,
  211. % the data are never used.  In my estimation, it is perfectly acceptable
  212. % to have these commands in the file (for future use), so they are defined
  213. % in the usual way.
  214.  
  215. \def\received#1{\gdef\@recvdate{#1}} \received{\relax}
  216. \def\revised#1{\gdef\@revisedate{#1}} \revised{\relax}
  217. \def\accepted#1{\gdef\@accptdate{#1}} \accepted{\relax}
  218. \def\journalid#1#2{\gdef\@jourvol{#1}\gdef\@jourdate{#2}}
  219. \def\articleid#1#2{\gdef\@startpage{#1}\gdef\@finishpage{#2}}
  220. \def\paperid#1{\gdef\@paperid{#1}} \paperid{MS-0001-SAMP}
  221. \def\ccc#1{\gdef\CCC@code{#1}} \ccc{000-00\$75.95-CDB}
  222.  
  223. % Following copyright and running heads \defs are stubs.
  224. %\let\cpright=\@gobbletwo
  225. %\let\righthead=\@gobble
  226. %\let\lefthead=\@gobble
  227.  
  228. % Copyright data.  Permit the author/editor to supply a copyright
  229. % "type" as well as the year.
  230. %
  231. %    \cpright{TYPE}{YEAR}
  232. %
  233. % Copyright types are designated by name and converted to numeric form.
  234. % The mapping of types is defined by the code that sets the @cprtype
  235. % counter.  The language of the copyright notices is defined by \@slug.
  236.  
  237. \def\cpright#1#2{\@nameuse{cpr@#1} \gdef\cpr@year{#2}
  238.     \typeout{`#1' copyright \cpr@year.}}
  239.  
  240. \newcount\@cprtype \@cprtype=\@ne    % Default copyright type.
  241. \def\cpr@AAS{\@cprtype=1}
  242. \def\cpr@PD{\@cprtype=2}
  243. \def\cpr@Crown{\@cprtype=3}
  244. \def\cpr@none{\@cprtype=4}
  245. \def\cpr@ASP{\@cprtype=5}
  246.  
  247. \def\cpr@year{\number\year}        % Default copyright year.
  248.  
  249. % \@slug determines formatting of slugline information.
  250. % ATTN: Check with AAS/AIP/UCP about exact wording of these.
  251.  
  252. \def\@slug{\par\noindent
  253.     \ifcase\@cprtype
  254.     \relax
  255.     \or
  256.     Copyright \cpr@year\space by the \cpr@holder.
  257.     \or
  258.     This article is in the public domain.
  259.     \or
  260.     Crown copyright \cpr@year\space by the \cpr@holder.
  261.     \or
  262.     No copyright is claimed for this article.
  263.     \or
  264.     Copyright \cpr@year\space by the ASP.
  265.     \fi
  266.     \par\noindent
  267.     Manuscript number \@paperid.\par\noindent
  268.     \CCC@code
  269. }
  270.  
  271. % Authors may be asked to supply running head information.  We use the
  272. % language of the publisher here to distinguish between two pieces of
  273. % information: the left head frequently contains an author list (last
  274. % names, possibly truncated as et al.), while the right head frequently
  275. % contains an abbreviated form of the paper title.  The \lefthead and
  276. % \righthead commands merely collect the information and buffer the text.
  277. %
  278. %    \lefthead{TEXT}
  279. %    \righthead{TEXT}
  280. %
  281. % For the ApJ, right heads are the short titles, and the publisher would
  282. % like for the author to specify a 44-character or less abbreviated title
  283. % to use as the running head on right pages.
  284.  
  285. \def\lefthead#1{\gdef\@versohead{#1}} \lefthead{\relax}
  286. \def\righthead#1{\gdef\@rectohead{#1}} \righthead{\relax}
  287.  
  288. % \@runheads determines formatting of running head information.
  289.  
  290. \def\@runheads{\@tempcnta\c@page
  291.   \@whilenum \@tempcnta >0\do{
  292.     \vskip 3ex
  293.     \hbox to30pc{\small\expandafter\uppercase\expandafter{\@versohead}:
  294.     \expandafter\uppercase\expandafter{\@rectohead}\hfil}
  295.     \advance\@tempcnta by\m@ne}
  296. }
  297.  
  298. % The \slugcomment command is provided so authors or editors may include
  299. % a remark about the manuscript that may be desired in print for some
  300. % styles.  For instance, authors like to include information about the
  301. % journal and publication date of accepted papers ("To appear in AJ,
  302. % November 1992").
  303. %
  304. %    \slugcomment{TEXT}
  305. %
  306. % The formatting of the \slugcomment information is controlled by the
  307. % \@makeslugcmmnt command and its placement on the page is dictated
  308. % by the presence of \@makeslugcmmnt in \sluginfo (or whatever).
  309.  
  310. \def\slugcomment#1{\gdef\slug@comment{#1}} \slugcomment{}
  311.  
  312. % For PP style, slug comments are set flushright at the top of the title
  313. % page in a parbox of 2/3 the textwidth.
  314.  
  315. \newdimen\@slugcmmntwidth \@slugcmmntwidth .67\textwidth
  316. \long\def\@makeslugcmmnt{\ifx\slug@comment\@empty\relax\else
  317.     \setbox\@tempboxa\hbox{\slug@comment}
  318.     \ifdim \wd\@tempboxa >\@slugcmmntwidth
  319.         \hbox to\textwidth{\hss
  320.         \parbox\@slugcmmntwidth\slug@comment}
  321.     \else
  322.         \hbox to\textwidth{\hfil\box\@tempboxa}  
  323.     \fi
  324.     \vskip 2ex
  325. \fi}
  326.  
  327. % Editorial offices like to have receipt and acceptance dates on the front
  328. % page for tracking purposes.  The current practice is to require the author
  329. % to type Received __________________ and Accepted ________________ lines
  330. % for the staff to type on.  The \@dates command will typeset either rules
  331. % or the dates specified in \received and/or \accepted commands.  Note that
  332. % authors should not include \received and \accepted.
  333.  
  334. \def\@rcvaccrule{\vrule\@width1.75in\@height0.5pt\@depth\z@}
  335.  
  336. % \@dates determines formatting of MS date information.
  337.  
  338. \def\@dates{{\center\if@twocolumn\small\else\normalsize\fi%
  339.     {\it Received}\space%
  340.     \if\@recvdate\relax\@rcvaccrule\else\@recvdate\fi;%
  341.     \if@twocolumn\\[.5ex]\else\hspace{1.5em}\fi%
  342.     {\it accepted}\space%
  343.     \if\@accptdate\relax\@rcvaccrule\else\@accptdate\fi%
  344.     \endcenter}
  345. }
  346.  
  347. % The \sluginfo command is executed automatically when a \begin{abstract} is
  348. % encountered, so it is not necessary (or appropriate) for the author to
  349. % include this line explicitly.  The received/accepted business is a
  350. % concern only for the editorial staff, hence we have arranged for the
  351. % author not to have to fuss with it.
  352.  
  353. \def\sluginfo{{\center
  354.     \@dates
  355.     %\@slug
  356.     %\@runheads
  357.     \endcenter}}
  358.  
  359. \let\dates=\sluginfo    % Backwards compatibility
  360.  
  361. %\@input{text.sty}
  362.  
  363. %  ****************************************
  364. %  *            FRONT MATTER              *
  365. %  ****************************************
  366.  
  367. % Make adjustments to LaTeX abstract style: optional upper case heading,
  368. % bump size up in single column mode.  This is a two-column style by
  369. % default, and I presume most of the text will be set at 10pt.  However,
  370. % one-column front matter should be set larger.
  371.  
  372. \def\abstract{\if@twocolumn
  373.     \section*{Abstract}
  374.     \else \large \vspace{3em}
  375.     \begin{center}
  376.     {\bf{ABSTRACT}\vspace{-.5em}\vspace{0pt}} 
  377.     \end{center}
  378.     \quotation 
  379. \fi}
  380.  
  381. % Title and author identification is by way of standard LaTeX commands
  382. % \title and \author, although the macros themselves are rather different.
  383. % The information is typeset by these macros in this style, rather than
  384. % being buffered as per regular LaTeX.  The authors' principal affiliation
  385. % is specified with a separate macro \affil.  Each \author command should
  386. % be followed by its own \affil (or address).
  387. %
  388. % Authors often have affiliations above and beyond their main employer,
  389. % and these are specified with the \altaffilmark and \altaffiltext commands.
  390. % These commands behave like the \footnotemark and \footnotetext commands
  391. % of LaTeX.  \altaffilmark is appended to author's names in the \author
  392. % lists, and generates the superscript identification numbers.
  393. % The text for the individual alternate affiliations is generated by the
  394. % \altaffiltext command.  It is up to the author to make sure that the
  395. % \altaffilmark numbers attached to authors' names correspond to the correct
  396. % alternate affiliation.
  397. %
  398. %     \title{LUCID TEXT}
  399. %     \author{NAME(S)}
  400. %     \authoraddr{AUTHOR'S POSTAL ADDRESS}
  401. %     \affil{AFFILIATION}
  402. %     \altaffilmark{TAG NUMBER(S)}
  403. %     \altaffiltext{NUMERICAL TAG}{TEXT}
  404. %
  405. % The typesetting performed by these commands is appropriate for the top of
  406. % the first text page of the manuscript.  They could as well be used on a
  407. % title cover page, but vertical placement would have to be controlled by
  408. % the author.   This is not to be encouraged, since I want to discourage
  409. % the introduction of any extra horizontal or vertical space.
  410.  
  411. \def\title#1{{\center\if@twocolumn\large\else\Large\fi\bf#1\endcenter}}
  412. \def\author#1{{\topsep 0pt\center
  413.     \if@twocolumn\normalsize\else\vspace{4ex}\large\fi#1\endcenter}}
  414. \let\authoraddr=\@gobble
  415. \def\affil#1{\vspace*{-0.8ex}{\topsep 0pt\center
  416.     \if@twocolumn\small\else\normalsize\fi\it#1\endcenter}}
  417. \def\altaffilmark#1{$^{#1}$}
  418. \def\altaffiltext#1#2{\footnotetext[#1]{#2}}
  419.  
  420. % Redefine the LaTeX \and command for this style.
  421.  
  422. \def\and{\vspace*{-0.5ex}{\topsep\z@\center and\endcenter}}
  423.  
  424. %  ****************************************
  425. %  *             KEYWORDS                 *
  426. %  ****************************************
  427.  
  428. % Keywords environment.  Keywords, subject headings, etc., are accommodated
  429. % only as a piece of text; the \keywords command indents if necessary and
  430. % supplies the proper leading text ("Keywords:", "Subject headings:", etc.)
  431. % but does not apply formatting to the user's keyword text.  The author
  432. % must supply the correct punctuation according to the journal style.
  433. %
  434. % Note that the editors of A&A, ApJ, and MNRAS have discussed the issue
  435. % of keywords, and there is disagreement about whether "subject headings"
  436. % or "keywords" should appear after abstracts in astronomical papers.
  437. % It does not really matter what the macro is called, so I will stick
  438. % to \keywords since I don't know what the difference is anyway.
  439.  
  440. \def\@keywordtext{Subject headings}
  441. \def\@keyworddelim{---}
  442.  
  443. \def\keywords#1{\vspace*{-.7ex}%\vspace{0pt}
  444.     \if@twocolumn\noindent{\small{\it\@keywordtext:\/}\space\@kwds{#1}}
  445.     \else{\quote\if@twocolumn\small\else\large\fi
  446.     {\it\@keywordtext:\/}\space\@kwds{#1}\endquote}
  447.     \fi}
  448.  
  449. \let\subjectheadings=\keywords
  450.  
  451. % It might be possible to handle keywords and their punctuation more
  452. % automatically at some stage, but at the moment using this looping
  453. % construct is serious overkill.  It also causes problems because the
  454. % loop delimiter is a comma, and there are keywords that legitimately
  455. % contain commas.  It also seem ponderous to me for keywords in the
  456. % \keyword list to be delimited by `|', so I make the author responsible
  457. % for keyword list punctuation.
  458.  
  459. %\def\@kwds#1{\def\@kwddlm{}\@for\@kwd:=#1\do
  460. %      {\@kwddlm\def\@kwddlm{\space\@keyworddelim\penalty\@m\space}{\@kwd}}}
  461.  
  462. \def\@kwds#1{#1\relax}
  463.  
  464. %  ****************************************
  465. %  *             FOOTNOTES                *
  466. %  ****************************************
  467.  
  468. % The following code redefines a few things so that spacing in footnotes is
  469. % different than LaTeX defaults.  The adjustment to \skip\footins increases
  470. % the amount of vspace inserted before the \footnoterule.  Redefine
  471. % \@makefntext to remove hspace and indentation.
  472.  
  473. \skip\footins 3ex plus 1ex minus .5ex
  474. \footnotesep 2ex
  475.  
  476. \long\def\@makefntext#1{\noindent\hbox to\z@{\hss$^{\@thefnmark}$}#1}
  477.  
  478. %  ****************************************
  479. %  *             SECTIONS                 *
  480. %  ****************************************
  481.  
  482. % \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}
  483. %            optional * [ALTHEADING]{HEADING}
  484. %    Generic command to start a section.
  485. %    NAME       : e.g., 'subsection'
  486. %    LEVEL      : a number, denoting depth of section -- e.g., chapter=1,
  487. %                 section = 2, etc.
  488. %    INDENT     : Indentation of heading from left margin
  489. %    BEFORESKIP : Absolute value = skip to leave above the heading.
  490. %                 If negative, then paragraph indent of text following
  491. %                 heading is suppressed.
  492. %    AFTERSKIP  : if positive, then skip to leave below heading, else
  493. %                 negative of skip to leave to right of run-in heading.
  494. %    STYLE      : commands to set style
  495. %  If '*' missing, then increments the counter.  If it is present, then
  496. %  there should be no [ALTHEADING] argument.
  497.  
  498. % Adjust section heading typography slightly.  The manuscript editors
  499. % seem to like the idea that the heads will be centered, and that there
  500. % will be a "." trailing the section number.  This requires hacking below
  501. % the normal LaTeX programming interface (\@startsection), since the
  502. % centering has to be turned on and off again before the section starts.
  503. %
  504. % Also, modify the indentation behavior so that ALL paragraphs, including
  505. % those first after section heads, are indented.  This is consonant with
  506. % the styles of many journals, although it's non-standard typographic practice.
  507. %
  508. % Add simple logic to engage \twocolumn when the first \section command
  509. % is encountered if this hasn't been done already.
  510.  
  511. \newif\if@firstsection \@firstsectiontrue
  512.  
  513. \def\section{\if@firstsection
  514.     \if@twocolumn\relax\else\twocolumn\fi
  515.     \@firstsectionfalse\fi
  516.     \@startsection{section}{1}{\z@}
  517.     {2.3ex plus 1ex minus .2ex}{1.5ex plus .2ex}{\normalsize\bf}}
  518. \def\subsection{\@startsection{subsection}{2}{\z@}
  519.     {2ex plus 1ex minus .2ex}{1ex plus .2ex}{\normalsize\bf}}
  520. \def\subsubsection{\@startsection{subsubsection}{3}{\z@}
  521.     {2ex plus 1ex minus .2ex}{1ex plus .2ex}{\normalsize\it}}
  522.  
  523. \def\thesection{\@arabic{\c@section}.}
  524. \def\thesubsection{\thesection\@arabic{\c@subsection}.}
  525. \def\thesubsubsection{\thesubsection\@arabic{\c@subsubsection}.}
  526. \def\theparagraph{\thesubsubsection\@arabic{\c@paragraph}:}
  527.  
  528. % For ApJ, acknowledgments are set off from main body text simply by
  529. % vertical space (no heading or type size change).  I do the same for
  530. % the AAS manuscript style.  For use in producing more polished output
  531. % for other journals, this macro might generate text saying
  532. % "Acknowledg[e]ments".
  533.  
  534. \def\acknowledgments{\vskip 3ex plus .8ex minus .4ex}
  535. \let\acknowledgements=\acknowledgments            % second spelling
  536.  
  537. %  ****************************************
  538. %  *          EQUATION NUMBERING          *
  539. %  ****************************************
  540.  
  541. % Redefine \appendix so that equation numbers are prepended with 
  542. % \theappendix number.  Reset equation counter so that equation
  543. % numbers in the appendix begin again with 1.  Note that the
  544. % \appendix command is NOT a sectioning command; it is merely
  545. % a delimiting markup between the main body of the paper and the
  546. % appendix.  Sections in the appendix are still started with
  547. % \section commands.
  548. %
  549. %    \appendix
  550.  
  551. \def\appendix{\par
  552.   \setcounter{section}{0}
  553.   \setcounter{subsection}{0}
  554.   \setcounter{equation}{0}
  555.   \def\thesection{\Alph{section}.}
  556.   \def\theequation{\hbox{\normalsize\Alph{section}\arabic{equation}}}}
  557.  
  558. % Define mathletters environment.  This is a wrapper that goes
  559. % *around* (outside of) equation or eqnarray environments.
  560. %
  561. %    \begin{mathletters}
  562. %    \end{mathletters}
  563.  
  564. \newcounter{cureqno}
  565.  
  566. \newenvironment{mathletters}{\refstepcounter{equation}%
  567.     \setcounter{cureqno}{\value{equation}}%
  568.     \let\@curtheeqn\theequation%
  569.     \edef\cur@eqn{\csname theequation\endcsname}%
  570.     \def\theequation{\cur@eqn\alph{equation}}%
  571.     \setcounter{equation}{0}}%
  572.     {\let\theequation\@curtheeqn%
  573.     \setcounter{equation}{\value{cureqno}}}
  574.  
  575. % The \eqnum command allows the author to override all automatic
  576. % equation marking schemes.
  577. %
  578. %    \eqnum{TEXT}
  579.  
  580. \def\eqnum#1{\def\theequation{#1}\let\@currentlabel\theequation
  581.     \addtocounter{equation}{\m@ne}}
  582.  
  583. %  ****************************************
  584. %  *          BIBLIOGRAPHY                *
  585. %  ****************************************
  586.  
  587. % Bibliography/references environment.  For the time being, I don't think
  588. % it would be a good idea to force an implementation based on BibTeX,
  589. % although I'll prepare for that eventuality by using the constructs and
  590. % general ideas of the LaTeX thebibliography environment.  Adjustments
  591. % have been made so that the \cite-\bibitem mechanism can be used to cite
  592. % references symbolically while maintaining proper citation syntax within
  593. % the paper; the author must create the citation label for each reference
  594. % in proper journal format in the \bibitem command.
  595. %
  596. %    \begin{thebibliography}
  597. %    \bibitem[LABEL]{TEXTTAG} \reference <bibliographic data>
  598. %    \end{thebibliography}
  599. %
  600. % where LABEL must adhere to the journal's standards, e.g. "Abt 1986".
  601. %
  602. % It is not necessary to use the thebibliography environment.  This style
  603. % defines a references environment that simply sets off the list of references
  604. % and adjusts spacing parameters.  It is not possible to use \bibitems
  605. % within the references environment.  (The \reference command cannot be
  606. % shortened to \ref; \ref is used in vanilla LaTeX for cross-referencing.)
  607. %
  608. %    \begin{references}
  609. %    \reference <bibliographic data>
  610. %    \end{references}
  611. %
  612. %    \markcite{TEXT}
  613. %
  614. % Observe that the bibliographic data supplied by the author must also
  615. % conform to the standards of the journal.  I have elected not to burden
  616. % authors with tedious LaTeX commands which would require many curly braces
  617. % to delimit the bibliographic fields because many of the journals I have
  618. % targeted in this project have agreed to reduce typographic overhead (bolding,
  619. % italicizing, etc.) in reference lists.  (See Abt's editorial in ApJ 357.)
  620. % It is the responsibility of the author to get these fields in the proper
  621. % order with the correct punctuation; the information will be typeset as is,
  622. % i.e., in roman with no size or style changes.
  623. %
  624. % Macros are provided for many of the oft-referenced journals so that authors
  625. % may use the LaTeX names rather than having to look up a particular journal's
  626. % specific abbreviation.  In principle, all the journals should be using the
  627. % same abbreviations, too, but I anticipate some changes in the specific
  628. % abbreviations before a set is finally settled on.  As long as these macros
  629. % are kept up to date, authors need not be concerned about such editorial
  630. % changes.
  631. %
  632. % Corresponding with the non-BibTeX references environment and \reference
  633. % command for the reference list is the \markcite command.  This can be
  634. % used to identify in-text citations; in this case, the author provides
  635. % the actual citation text as opposed to the symbolic tag.  The use of
  636. % this is encouraged, even for journals where no special formatting of
  637. % citation call-outs is required; it is crucial for the future use of
  638. % on-line browsers.
  639.  
  640. \def\references{\subsection*{REFERENCES}
  641.     \bgroup\parindent=\z@\parskip=\itemsep
  642.     \def\refpar{\par\hangindent=1.2em\hangafter=1}}
  643. \def\endreferences{\refpar\egroup\revtex@pageid}
  644.  
  645. \def\thebibliography{\subsection*{REFERENCES}
  646.     \list{\null}{\leftmargin 1.2em\labelwidth\z@\labelsep\z@\itemindent -1.2em
  647.     \usecounter{enumi}}
  648.     \def\refpar{\relax}
  649.     \def\newblock{\hskip .11em plus .33em minus .07em}
  650.     \sloppy\clubpenalty4000\widowpenalty4000
  651.     \sfcode`\.=1000\relax}
  652. \def\endthebibliography{\endlist\revtex@pageid}
  653.  
  654. \def\@biblabel#1{\relax}
  655. %\def\@cite#1#2{({#1\if@tempswa , #2\fi})}
  656. \def\@cite#1#2{#1\if@tempswa , #2\fi}
  657.  
  658. \def\reference{\relax\refpar}  % Generic: might be better...
  659. \def\markcite#1{#1\relax}
  660.  
  661. % Modify \@citex so that individual citation texts are NOT hboxed.
  662. % This allows TeX to break lines at spaces between words in citations.
  663. % Remove the obnoxious {\bf ?} that was inserted in the text when
  664. % undefined citations are encountered; here, the warning message is
  665. % printed only on the terminal.
  666.  
  667. \def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  668.   \def\@citea{}\@cite{\@for\@citeb:=#2\do
  669.     {\@citea\def\@citea{,\penalty\@m\ }\@ifundefined
  670.        {b@\@citeb}{\@warning
  671.        {Citation `\@citeb' on page \thepage \space undefined}}%
  672. {\csname b@\@citeb\endcsname}}}{#1}}
  673.  
  674. %\@input{mstblfig.sty}
  675.  
  676. %  ****************************************
  677. %  *         TABLES AND FIGURES           *
  678. %  ****************************************
  679.  
  680. % Additions and adjustments for tables and figures.
  681.  
  682. % Footnotes for tables are to be identified with lower case alphabetics,
  683. % rather than numeric.  \tablenotemark and \tablenotetext commands are
  684. % provided analogous to \footnotemark and \footnotetext, but with the
  685. % identifier *required*, like \altaffilmark and \altaffiltext.  The
  686. % \tablenotetext must be specified before the \end{table}, since
  687. % \end{table} displays it.
  688. %
  689. %     \tablenotemark{TAG LETTER(S)}
  690. %     \tablenotetext{ALPHA TAG}{TEXT}
  691. %
  692. % Note that TAG LETTER == ALPHA TAG for corresponding text.  It is the
  693. % responsibility of the author to get the correspondence correct.
  694. %
  695. % The table footnotes are coupled to the table in which they occur, rather
  696. % than being associated with a particular page, and they are printed with
  697. % the table (relatively close to the caption) instead of appearing at the
  698. % extreme bottom of the page.  This is done to ensure that the notes wind
  699. % up on the same page as the table, since tables are floats and can migrate
  700. % from one page to another.  There is the additional benefit that the notes
  701. % are unambiguously attached to the proper table, which is what is required
  702. % in the event that the editorial requirement of one table only per page
  703. % is ever changed to permit several tables per page.
  704. %
  705. % Footnotes are NOT supported for figures.
  706.  
  707. \def\tablenotemark#1{\rlap{$^{\rm #1}$}}
  708.  
  709. % The \tablenotetext command buffers the table note text and the "proper"
  710. % tablenote formatting information in a token buffer.  The tablenotes are
  711. % dispensed into the vertical page list by \spew@tblnotes, which is
  712. % executed by \end{table}.  Note that certain "global" tablenote formatting
  713. % details are handled by \spew@tblnotes, which also clears the tblnote list.
  714. % Praise and honor are due to Kresten Krab Thorup (krab@iesd.auc.dk) for
  715. % posting ftn.sty to the Usenet, from which I drew the technique.
  716.  
  717. \newtoks\@temptokenb
  718. \def\tblnote@list{}
  719.  
  720. \def\tablenotetext#1#2{
  721.     \@temptokena={\vspace{.5ex}{\noindent\llap{$^{#1}$}#2}\par}
  722.     \@temptokenb=\expandafter{\tblnote@list}
  723.     \xdef\tblnote@list{\the\@temptokenb\the\@temptokena}}
  724.  
  725. \def\spew@tblnotes{
  726.   \ifx\tblnote@list\@empty\relax
  727.   \else
  728.     \vspace{3.2ex}
  729.     \footnoterule
  730.     \vspace{.4ex}
  731.     {\footnotesize\tblnote@list}
  732.     \gdef\tblnote@list{}
  733.   \fi}
  734.  
  735. \def\endtable{\spew@tblnotes\end@float}
  736. \@namedef{endtable*}{\spew@tblnotes\end@dblfloat}
  737.  
  738. % Add a \tableline command for use in tabular environments.  This command
  739. % produces the horizontal rule(s) between the column headings and the body
  740. % of the table.  Authors are discouraged from using any \hlines themselves,
  741. % and are typically forbidden from using vertical rules by editors.
  742.  
  743. \let\tableline=\hline
  744.  
  745. % \@makecaption determines formatting for figure and table captions.  
  746. % For manuscripts, all captions should be set as flushleft paragraphs.
  747.  
  748. \long\def\@makecaption#1#2{\vskip 2ex\noindent #1 #2\par}
  749.  
  750. % The \tablenum command allows the author to override all automatic
  751. % table marking schemes.
  752. %
  753. %    \tablenum{TEXT}
  754.  
  755. \def\tablenum#1{\def\thetable{#1}\let\@currentlabel\thetable
  756.     \addtocounter{table}{\m@ne}}
  757.  
  758. % The \figurenum command allows the author to override all automatic
  759. % figure marking schemes.
  760. %
  761. %    \figurenum{TEXT}
  762.  
  763. \def\figurenum#1{\def\thefigure{#1}\let\@currentlabel\thefigure
  764.     \addtocounter{figure}{\m@ne}}
  765.  
  766. %  ****************************************
  767. %  *           PLANO TABLES               *
  768. %  ****************************************
  769.  
  770. % Plano tables are camera-ready pages that are included in a typeset
  771. % article the same way as line drawings, graphs, and other camera-ready
  772. % art, i.e., as "planographic" figures.  There are desirable properties
  773. % for a formatter to have that are somewhat above and beyond LaTeX'x
  774. % tabular environment that would facilitate the creation of such tables.
  775. % Among these are breaking long tables across pages, using footnotes
  776. % in a table, specifying comments and references for tables, etc.
  777. %
  778. % What follows was inspired by supertab.sty by Theo Jurriens, 1988.
  779.  
  780. % Commands for identifying table elements in a consistent way.  Observe
  781. % that the formatting is embedded in the macro definitions so that the
  782. % author doesn't need to be concerned about stylistic nuances.
  783. %
  784. %    \tablecaption{TEXT}
  785. %    \tablehead{TEXT}
  786. %    \colhead{HEADING}
  787. %    \tabletail{TEXT}
  788. %    \tablewidth{DIMEN}
  789. %    \tableheadfrac{NUM}
  790.  
  791. \newbox\pt@box
  792. \newdimen\pt@width
  793. \newcount\pt@line
  794. \newcount\pt@nlines
  795. \newcount\pt@ncol
  796.  
  797. \def\colhead#1{\omit\hidewidth{#1}\hidewidth\global\advance\pt@ncol by\@ne}
  798. \def\tablecaption#1{\gdef\pt@caption{#1}} \def\pt@caption{\relax}
  799. \def\tablehead#1{\gdef\pt@head{\hline\hline\relax\\[-1.7ex]
  800.     #1\hskip\tabcolsep\\[.7ex]\hline\relax\\[-1.5ex]}} \def\pt@head{\relax}
  801. \def\tabletail#1{\gdef\pt@tail{#1}} \def\pt@tail{\relax}
  802. \def\tablewidth#1{\pt@width=#1} \pt@width\textwidth
  803. \def\tableheadfrac#1{\gdef\pt@headfrac{#1}} \def\pt@headfrac{.1}
  804.  
  805. % Calculate the number of tabular rows that will fit in the body of the
  806. % table.  The height of the table body and the number of lines are
  807. % calculated thus:
  808. %
  809. %     bodyheight = \textheight * (1 - \pt@headfrac)
  810. %     \pt@nlines = bodyheight / (\arraystretch * \baselineskip)
  811. %
  812. % The row height can be seen to be valid algebraically if one examines the
  813. % definitions for \strutbox, \@setstrut, and \@array.  I could eliminate
  814. % this calculation, as well as its attendant parameters, if it were possible
  815. % to determine the accumulated height of the \halign box as TeX goes along.
  816.  
  817. \def\pt@calcnlines{\@tempdima\pt@headfrac\textheight
  818.     \@tempdimb\textheight\advance\@tempdimb by-\@tempdima
  819.     \@tempdima\arraystretch\baselineskip
  820.     \divide\@tempdimb by\@tempdima
  821.     \global\pt@nlines\@tempdimb}
  822.  
  823. % Define \pt@tabular, a ripoff of \@tabular but with \leavevmode removed
  824. % so tabular box can be set with \setbox.  I do this so that table notes
  825. % can be set to natural width of table, if desired.  Also, set \@acol
  826. % to \@ptabacol, which is called when building the preamble for the
  827. % \halign (assuming the first column format specification is "l", which
  828. % it should be for ApJ tables) so that \tabskip within the table is set
  829. % to \fill.  This permits us to toggle between natural and fixed-width
  830. % tables without requiring the user to change markup.  Note that by
  831. % forcing \tabskip always to be \fill, I pretty well nullify any
  832. % @{\hspace} commands the user puts in the template, but this environment
  833. % is for people who don't want to think about that sort of stuff anyway.
  834.  
  835. \def\pt@tabular{\hbox \bgroup $\let\@acol\@ptabacol 
  836.    \let\@classz\@tabclassz
  837.    \let\@classiv\@tabclassiv \let\\\@tabularcr\@tabarray}
  838.  
  839. \def\@ptabacol{\edef\@preamble{\@preamble \hskip \tabcolsep\tabskip\fill}}
  840.  
  841. % Permit different identifying strings, one for the first page of the
  842. % table and one for continuation pages.  LaTeX's \fnum@table is set to
  843. % one or the other automatically in the environment.  Note that caption
  844. % handling is not so graceful: you have to edit inside the big macros to
  845. % adjust this.  Someday, I will be ambitious enough to fix this.
  846.  
  847. \def\fnum@ptable{Table \thetable}
  848. \def\fnum@ptablecont{Table \thetable---{\it Continued}}
  849.  
  850. \def\set@mkcaption{\long\def\@makecaption##1##2{
  851.     \center\sc##1\\[.5ex]##2\endcenter\vskip 1.5ex}}
  852. \def\set@mkcaptioncont{\long\def\@makecaption##1##2{
  853.     \center\sc##1\endcenter\vskip 1.5ex}}
  854.  
  855. \newenvironment{planotable}[1]{\def\pt@format{\string#1}%
  856.     \set@tblnotetext\pt@ncol=0}%
  857.     {\crcr\noalign{\vskip .7ex}\hline\endtabular%
  858.     \pt@width\wd\pt@box\box\pt@box\spew@ptblnotes%
  859.     \typeout{Table \thetable\space has been set to width \the\pt@width}%
  860.     \endcenter\end@dblfloat}
  861.  
  862. \def\startdata{\pt@line=0\pt@calcnlines%
  863.     \ifdim\pt@width>\z@\def\@halignto{to \pt@width}\else\def\@halignto{}\fi%
  864.     \let\fnum@table=\fnum@ptable\set@mkcaption%
  865.     \@dblfloat{table}\center\caption{\pt@caption}\leavevmode%
  866.     \setbox\pt@box=\pt@tabular{\pt@format}\pt@head}
  867.  
  868. % A kludgey kind of line delimiter is needed so that the line counter
  869. % can be checked prior to adding the line to the alignment box.  This
  870. % is bad because this form does not permit the addition of vertical
  871. % space using the [.5ex] construct; this has to be done with an explicit
  872. % \vskip.  And a disgusting \noalign is required, so I have to create
  873. % another silly piece of markup to accomplish this conveniently.
  874. %
  875. % What is desired, of course, is for this line count checking to take
  876. % place within the syntax of the regular LaTeX \\ command.  I have been
  877. % giving myself apoplexy trying to figure this out for the last 36 hours,
  878. % and I have decided I will have to wait for the onset of my "lucid
  879. % period" for a solution.  In the meantime...
  880.  
  881. \def\pt@nl{\global\advance\pt@line by\@ne%
  882.   \ifnum\pt@line=\pt@nlines%
  883.     \endtabular\box\pt@box
  884.     \endcenter\end@dblfloat\clearpage%
  885.     \addtocounter{table}{\m@ne}%
  886.     \let\fnum@table=\fnum@ptablecont\set@mkcaptioncont%
  887.     \@dblfloat{table}\center\caption{\pt@caption}\leavevmode%
  888.     \global\pt@ncol=0%
  889.     \setbox\pt@box=\pt@tabular{\pt@format}\pt@head%
  890.     \global\pt@line=0%
  891.   \else\\
  892.   \fi}
  893.  
  894. % Author markup commands for planotable environment line breaks.
  895. %
  896. %    \nl == \nextline
  897. %    \tablevspace{DIMEN}
  898. %    \tablebreak
  899.  
  900. \let\nl=\pt@nl
  901. \let\nextline=\pt@nl
  902.  
  903. \def\tablevspace#1{\noalign{\vskip{#1}}}
  904. \def\tablebreak{\pt@line\pt@nlines\advance\pt@line by\m@ne\pt@nl}
  905.  
  906. % We have some specialty heads that are sometimes wanted in tables.
  907. %
  908. %    \cutinhead{TEXT}
  909. %    \sidehead{TEXT}
  910.  
  911. \def\cutinhead#1{\noalign{\vskip 1.5ex}
  912.     \hline\pt@nl\noalign{\vskip -2.0ex}
  913.     \multicolumn{\pt@ncol}{c}{#1}\pt@nl
  914.     \noalign{\vskip .8ex}
  915.     \hline\pt@nl\noalign{\vskip -2ex}}
  916.  
  917. \def\sidehead#1{\noalign{\vskip 1.5ex}
  918.     \multicolumn{\pt@ncol}{@{\hskip\z@}l}{#1}\pt@nl
  919.     \noalign{\vskip .5ex}}
  920.  
  921. \def\set@tblnotetext{\def\tablenotetext##1##2{{%
  922.     \@temptokena={\vspace{0ex}{%
  923.     \parbox{\pt@width}{\hskip1em$^{\rm ##1}$##2}\par}}%
  924.     \@temptokenb=\expandafter{\tblnote@list}
  925.     \xdef\tblnote@list{\the\@temptokenb\the\@temptokena}}}}
  926.  
  927. \def\spew@ptblnotes{
  928.   \ifx\tblnote@list\@empty\relax
  929.   \else
  930.     \par
  931.     \vspace{2ex}
  932.     {\tblnote@list}
  933.     \gdef\tblnote@list{}
  934.   \fi}
  935.  
  936. % Special kinds of table footnotes.  Sometimes authors tabulate things
  937. % which have corresponding references, and it may be desirable to associate
  938. % these references with the table rather than (or in addition to) the
  939. % formal reference list.  Occasionally, authors wish to append a short
  940. % paragraph of explanatory notes that pertain to the entire table, but
  941. % which are different than the caption.
  942. %
  943. %    \tablerefs{REFERENCE LIST}
  944. %    \tablecomments{TEXT}
  945.  
  946. \def\tablerefs#1{\@temptokena={\vspace*{3ex}{%
  947.     \parbox{\pt@width}{\hskip1em{\sc References.---}#1}\par}}%
  948.     \@temptokenb=\expandafter{\tblnote@list}
  949.     \xdef\tblnote@list{\the\@temptokenb\the\@temptokena}}
  950.  
  951. \def\tablecomments#1{\@temptokena={\vspace*{3ex}{%
  952.     \parbox{\pt@width}{\hskip1em{\sc Note.---}#1}\par}}%
  953.     \@temptokenb=\expandafter{\tblnote@list}
  954.     \xdef\tblnote@list{\the\@temptokenb\the\@temptokena}}
  955.  
  956. % Figure and table style parameters.
  957.  
  958. \def\thefigure{\@arabic\c@figure}
  959. \def\fnum@figure{{\rm Fig.\space\thefigure.---}}
  960.  
  961. \def\thetable{\@arabic\c@table}
  962. \def\fnum@table{{\rm Table \thetable:}}
  963.  
  964. % Figure and table float positions.
  965.  
  966. \def\fps@figure{bp}
  967. \def\fps@table{bp}
  968.  
  969. %  ****************************************
  970. %  *           EPS INCLUSIONS             *
  971. %  ****************************************
  972.  
  973. % Include Rokicki's epsf.sty file explicitly.
  974.  
  975. \@ifundefined{epsfbox}{\@input{epsf.sty}}{\relax}
  976.  
  977. % Simplified EPS inclusion macros so we can see how this goes...
  978. % These are layered on Rokicki's dvips material, and are dependent
  979. % on the author's use of that DVI driver.
  980. %
  981. %    \plotone{EPSFILE}
  982. %    \plottwo{EPSFILE}{EPSFILE}
  983. %    \plotfiddle{EPSFILE}{VSIZE}{ROT}{HSF}{VSF}{HTRANS}{VTRANS}
  984. %
  985. % \plotone inserts the plot in a space that is \columnwidth wide; the
  986. % plot is scaled so the horizontal dimension fits in the text width,
  987. % and the vertical dimension is scaled to maintain the aspect ratio.
  988. % \plottwo inserts two plots next to each other in one \columnwidth,
  989. % sort of like "two-up" mode.
  990. %
  991. %    EPSFILE    name of file with EPS
  992. %
  993. % The following arguments are for the \plotfiddle macro which formats
  994. % the \special itself, prepares vspace, etc.  This completely bypasses
  995. % Rokicki's macros that attempt to rationalize the EPS BoundingBox with
  996. % the LaTeX page dimensions.
  997. %
  998. %    VSIZE      vertical white space to allow for plot
  999. %    ROT        rotation angle
  1000. %    HSF        horiz scale factor
  1001. %    VSF        vert scale factor
  1002. %    HTRANS     horiz translation
  1003. %    VTRANS     vert translation
  1004.  
  1005. %\epsfverbosetrue
  1006.  
  1007. \def\plotone#1{\centering \leavevmode
  1008.     \epsfxsize=\columnwidth \epsfbox{#1}}
  1009.  
  1010. \def\plottwo#1#2{\centering \leavevmode
  1011.     \epsfxsize=.45\columnwidth \epsfbox{#1} \hfil
  1012.     \epsfxsize=.45\columnwidth \epsfbox{#2}}
  1013.  
  1014. \def\plotfiddle#1#2#3#4#5#6#7{\centering \leavevmode
  1015.     \vbox to#2{\rule{0pt}{#2}}
  1016.     \special{psfile=#1 voffset=#7 hoffset=#6 vscale=#5 hscale=#4 angle=#3}}
  1017.  
  1018. %\@input{abbrevs.sty}
  1019.  
  1020. %  ****************************************
  1021. %  *            ABBREVIATIONS             *
  1022. %  ****************************************
  1023.  
  1024. % Abbreviations for journals.  The object here is to provide authors
  1025. % with convenient shorthands for the most "popular" (often-cited)
  1026. % journals; the author can use these markup tags without being concerned
  1027. % about the exact form of the journal abbreviation, or its formatting.
  1028. % It is up to the keeper of the macros to make sure the macros expand
  1029. % to the proper text.  If macro package writers agree to all use the
  1030. % same TeX command name, authors only have to remember one thing, and
  1031. % the style file will take care of editorial preferences.  This also
  1032. % applies when a single journal decides to revamp its abbreviating
  1033. % scheme, as happened with the ApJ (Abt 1991).
  1034.  
  1035. \let\jnl@style=\rm
  1036. \def\ref@jnl#1{{\jnl@style#1}}
  1037.  
  1038. \def\aj{\ref@jnl{AJ}}            % Astronomical Journal
  1039. \def\araa{\ref@jnl{ARA\&A}}        % Annual Review of Astron and Astrophys
  1040. \def\apj{\ref@jnl{ApJ}}            % Astrophysical Journal
  1041. \def\apjl{\ref@jnl{ApJ}}        % Astrophysical Journal, Letters
  1042. \def\apjs{\ref@jnl{ApJS}}        % Astrophysical Journal, Supplement
  1043. \def\ao{\ref@jnl{Appl.Optics}}        % Applied Optics
  1044. \def\apss{\ref@jnl{Ap\&SS}}        % Astrophysics and Space Science
  1045. \def\aap{\ref@jnl{A\&A}}        % Astronomy and Astrophysics
  1046. \def\aapr{\ref@jnl{A\&A~Rev.}}        % Astronomy and Astrophysics Reviews
  1047. \def\aaps{\ref@jnl{A\&AS}}        % Astronomy and Astrophysics, Supplement
  1048. \def\azh{\ref@jnl{AZh}}            % Astronomicheskii Zhurnal
  1049. \def\baas{\ref@jnl{BAAS}}        % Bulletin of the AAS
  1050. \def\jrasc{\ref@jnl{JRASC}}        % Journal of the RAS of Canada
  1051. \def\memras{\ref@jnl{MmRAS}}        % Memoirs of the RAS
  1052. \def\mnras{\ref@jnl{MNRAS}}        % Monthly Notices of the RAS
  1053. \def\pra{\ref@jnl{Phys.Rev.A}}        % Physical Review A: General Physics
  1054. \def\prb{\ref@jnl{Phys.Rev.B}}        % Physical Review B: Solid State
  1055. \def\prc{\ref@jnl{Phys.Rev.C}}        % Physical Review C
  1056. \def\prd{\ref@jnl{Phys.Rev.D}}        % Physical Review D
  1057. \def\prl{\ref@jnl{Phys.Rev.Lett}}    % Physical Review Letters
  1058. \def\pasp{\ref@jnl{PASP}}        % Publications of the ASP
  1059. \def\pasj{\ref@jnl{PASJ}}        % Publications of the ASJ
  1060. \def\qjras{\ref@jnl{QJRAS}}        % Quarterly Journal of the RAS
  1061. \def\skytel{\ref@jnl{S\&T}}        % Sky and Telescope
  1062. \def\solphys{\ref@jnl{Solar~Phys.}}    % Solar Physics
  1063. \def\sovast{\ref@jnl{Soviet~Ast.}}    % Soviet Astronomy
  1064. \def\ssr{\ref@jnl{Space~Sci.Rev.}}    % Space Science Reviews
  1065. \def\zap{\ref@jnl{ZAp}}            % Zeitschrift fuer Astrophysik
  1066.  
  1067. \let\astap=\aap
  1068. \let\apjlett=\apjl
  1069. \let\apjsupp=\apjs
  1070.  
  1071. %\@input{misc.sty}
  1072.  
  1073. %  ****************************************
  1074. %  *            MISCELLANEOUS             *
  1075. %  ****************************************
  1076.  
  1077. % Handy little things everybody works out for themselves anyway.  Many
  1078. % of these come from Springer's A&A package, and some were contributed
  1079. % by Francois Schweizer at DTM.  You can go berserk making these up,
  1080. % especially when you start getting into the composite ones.  We have
  1081. % tried to select a tractable number that were useful, and somewhat
  1082. % difficult to get right because fussy kerning or some such is required.
  1083. % Most can be used in or out of math mode with impunity; \alt and \agt
  1084. % are relations and can only be used in math mode.
  1085.  
  1086. \def\deg{\hbox{$^\circ$}}
  1087. \def\sun{\hbox{$\odot$}}
  1088. \def\earth{\hbox{$\oplus$}}
  1089. \def\lesssim{\mathrel{\hbox{\rlap{\hbox{\lower4pt\hbox{$\sim$}}}\hbox{$<$}}}}
  1090. \def\gtrsim{\mathrel{\hbox{\rlap{\hbox{\lower4pt\hbox{$\sim$}}}\hbox{$>$}}}}
  1091. \def\sq{\hbox{\rlap{$\sqcap$}$\sqcup$}}
  1092. \def\arcmin{\hbox{$^\prime$}}
  1093. \def\arcsec{\hbox{$^{\prime\prime}$}}
  1094. \def\fd{\hbox{$.\!\!^{\rm d}$}}
  1095. \def\fh{\hbox{$.\!\!^{\rm h}$}}
  1096. \def\fm{\hbox{$.\!\!^{\rm m}$}}
  1097. \def\fs{\hbox{$.\!\!^{\rm s}$}}
  1098. \def\fdg{\hbox{$.\!\!^\circ$}}
  1099. \def\farcm{\hbox{$.\mkern-4mu^\prime$}}
  1100. \def\farcs{\hbox{$.\!\!^{\prime\prime}$}}
  1101. \def\fp{\hbox{$.\!\!^{\scriptscriptstyle\rm p}$}}
  1102. \def\micron{\hbox{$\mu$m}}
  1103.  
  1104. \let\la=\lesssim            % For Springer A&A compliance...
  1105. \let\ga=\gtrsim
  1106.  
  1107. % Permit author to typeset "case" fractions.  This is sometimes
  1108. % wanted in displayed equations, during which LaTeX will set fractions
  1109. % specified as \frac{x}{y} as "built-up" fractions (numerator and
  1110. % denominator at body text size).
  1111.  
  1112. \def\case#1#2{\hbox{$\frac{#1}{#2}$}}
  1113.  
  1114. % Permit author to typeset fractions set with solidus where the size
  1115. % is reduced and the numerals are oriented diagonally.  Note that this
  1116. % is different from a "shilled" fraction, which the author can produce
  1117. % without any special formatting markup.  Define markup shorthands for
  1118. % several common fractions using solidus.
  1119.  
  1120. \def\slantfrac#1#2{\hbox{$\,^#1\!/_#2$}}
  1121. \def\onehalf{\slantfrac{1}{2}}
  1122. \def\onethird{\slantfrac{1}{3}}
  1123. \def\twothirds{\slantfrac{2}{3}}
  1124. \def\onequarter{\slantfrac{1}{4}}
  1125. \def\threequarters{\slantfrac{3}{4}}
  1126.  
  1127. \def\ubvr{\hbox{$U\!BV\!R$}}        % UBVR system
  1128. \def\ub{\hbox{$U\!-\!B$}}        % U-B
  1129. \def\bv{\hbox{$B\!-\!V$}}        % B-V
  1130. \def\vr{\hbox{$V\!-\!R$}}        % V-R
  1131. \def\ur{\hbox{$U\!-\!R$}}        % U-R
  1132.  
  1133. % Notation for atomic species (ionization levels).  The ionization state
  1134. % is specified as the second argument, and should be given as a numeral.
  1135. % The macro has to expand the numeric state into the proper notation for
  1136. % the publication (roman, numeric, plus signs, etc.)
  1137. %
  1138. %    \ion{ELEMENT}{IONIZATION STATE}
  1139.  
  1140. \def\ion#1#2{#1$\;${\small\rm\@Roman{#2}}\relax}
  1141.  
  1142. % Centered ellipsis for use in tables (for unknown values).  \nodata
  1143. % is generalized markup for this notion: format of null-valued entries
  1144. % in tables is style-specific.
  1145.  
  1146. %\def\cellipsis{\hfill$\cdots$\hfill}
  1147. \def\nodata{\multicolumn{1}{c}{$\cdots$}}
  1148.  
  1149. % This is a generalization of the \LaTeX definition that comes in LaTeX.
  1150. % The change here ensures that LaTeX will be typeset in the current style,
  1151. % rather than always in roman.
  1152.  
  1153. \newcount\lecurrentfam
  1154. \def\LaTeX{\lecurrentfam=\the\fam \leavevmode L\raise.42ex
  1155.         \hbox{$\fam\lecurrentfam\scriptstyle\kern-.3em A$}\kern-.15em\TeX}
  1156.  
  1157. %  ****************************************
  1158. %  *              DEBUGGING               *
  1159. %  ****************************************
  1160.  
  1161. \def\sizrpt{
  1162.     (\fontname\the\font): em=\the\fontdimen6\font, ex=\the\fontdimen5\font
  1163.     \typeout{
  1164.     (\fontname\the\font): em=\the\fontdimen6\font, ex=\the\fontdimen5\font
  1165. }}
  1166.